[mirrors]
ftp://ftp.isc.org/isc/bind9/9.9.4-P1/bind-9.9.4-P1.tar.gz

[main]
filesize=7512868
sha512=761f60d9197bcb08c3ac150190194c90c2848478bfb61769c8a5325b5060ce81ff6f5d03fcb69445cf954acfeb0f307ef3a9f10351e03f51d638fc482250ed53

[deps]

[build]
#patch -p1 < "$K"/some.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"
BUILD_CC="$HOSTCC" \
CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --without-readline \
  --with-openssl="$butch_root_dir""$butch_prefix" \
  --with-ecdsa=yes --with-gost=yes --with-randomdev=/dev/urandom

for i in dns isc bind9 isccfg lwres ; do
  make -j$MAKE_THREADS -C lib/$i
done

make -j$MAKE_THREADS -C bin/dig

make -C bin/dig DESTDIR="$butch_install_dir" install
